package com.navigation.slidablenavigation;

import com.navigation.segmented.EnergyEntry;

public class PatentsCountries {

	public String country;
	public long value2002;
	public long value2001;
	public long value2000;
	public long value1999;
	public long value1998;
	public long value1997;
	public long value1996;
	public long value1995;
	public long value1994;
	public long value1993;
	public long value1992;

	public static PatentsCountries getFromLine(String line) {

		String[] arr = line.split(",");

		PatentsCountries result = new PatentsCountries();

		result.country = arr[0];
		result.value2002 = Long.parseLong(arr[11].trim());
		result.value2001 = Long.parseLong(arr[10].trim());
		result.value2000 = Long.parseLong(arr[9].trim());
		result.value1999 = Long.parseLong(arr[8].trim());
		result.value1998 = Long.parseLong(arr[7].trim());
		result.value1997 = Long.parseLong(arr[6].trim());
		result.value1996 = Long.parseLong(arr[5].trim());
		result.value1995 = Long.parseLong(arr[4].trim());
		result.value1994 = Long.parseLong(arr[3].trim());
		result.value1993 = Long.parseLong(arr[2].trim());
		result.value1992 = Long.parseLong(arr[1].trim());

		return result;
	}

}
